package Vista;

import Control.Control;

public class ProfesorInsertar extends javax.swing.JPanel {

    private Control control;

    public ProfesorInsertar(Control pControl) {
        this.control = pControl;
        initComponents();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jComboBox2 = new javax.swing.JComboBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jTextField1 = new javax.swing.JTextField();
        jTextField2 = new javax.swing.JTextField();
        jTextField3 = new javax.swing.JTextField();
        jTextField4 = new javax.swing.JTextField();
        jTextField5 = new javax.swing.JTextField();
        jTextField6 = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        jList1 = new javax.swing.JList();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jCheckBox1 = new javax.swing.JCheckBox();
        jCheckBox2 = new javax.swing.JCheckBox();
        link = new javax.swing.JButton();

        setBackground(new java.awt.Color(255, 255, 255));
        setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setFont(new java.awt.Font("Tahoma", 3, 24)); // NOI18N
        jLabel1.setText("Ingreso de profesores");
        add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 40, 270, -1));

        jLabel2.setText("Cédula:");
        add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 130, -1, -1));

        jLabel3.setText("Nombre:");
        add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 170, -1, -1));

        jLabel4.setText("Primer apellido:");
        add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 200, -1, -1));

        jLabel5.setText("Segundo apellido");
        add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 230, -1, -1));

        jLabel6.setText("Dirección:");
        add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 260, -1, -1));

        jLabel7.setText("Teléfono:");
        add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 290, -1, -1));

        jLabel9.setText("Categoría:");
        add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 320, -1, -1));

        jLabel10.setText("Estado actual:");
        add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 350, -1, -1));

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel11.setText("Materia asignada");
        add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 90, -1, -1));

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "MT1", "MT2", "MT3", "MT4", "MT5", "MT6", "VT1", "VT2", "VT3", "VT4", "VT5", "VT6" }));
        add(jComboBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 320, 110, -1));

        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Interino", "Propiedad" }));
        add(jComboBox2, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 350, 110, -1));

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jTextArea1.setSelectionColor(new java.awt.Color(51, 204, 0));
        jScrollPane1.setViewportView(jTextArea1);
        jTextArea1.setEnabled(jCheckBox1.isSelected());

        add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 410, 220, -1));

        jTextField1.setToolTipText("Cédula nacional en formato X-XXXX-XXXX ó XXXXXXXXX, para Extranjero utilizar el formato que se desee.");
        jTextField1.setSelectionColor(new java.awt.Color(51, 204, 0));
        jTextField1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField1ActionPerformed(evt);
            }
        });
        add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 120, 110, -1));

        jTextField2.setToolTipText("Debe de empezar con letra mayúscula");
        jTextField2.setSelectionColor(new java.awt.Color(51, 204, 0));
        add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 170, 110, -1));

        jTextField3.setToolTipText("Debe de empezar con letra mayúscula");
        jTextField3.setSelectionColor(new java.awt.Color(51, 204, 0));
        add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 200, 110, -1));

        jTextField4.setToolTipText("Debe de empezar con letra mayúscula");
        jTextField4.setSelectionColor(new java.awt.Color(51, 204, 0));
        add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 230, 110, -1));

        jTextField5.setSelectionColor(new java.awt.Color(51, 204, 0));
        add(jTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 260, 110, -1));

        jTextField6.setToolTipText("Puede usarse formato XX-XX-XX-XX, XXXX-XXXX, XXXX-XX-XX ó XXXXXXXX.");
        jTextField6.setSelectionColor(new java.awt.Color(51, 204, 0));
        add(jTextField6, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 290, 110, -1));

        jList1.setToolTipText("Se pueden eligir una o más materias para agregar al profesor manteniendo presionada la tecla \"Ctrl\".");
        jList1.setSelectionBackground(new java.awt.Color(51, 204, 0));
        jScrollPane2.setViewportView(jList1);

        add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 120, 160, 270));

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/Regresar.png"))); // NOI18N
        jButton1.setBorder(null);
        jButton1.setBorderPainted(false);
        jButton1.setContentAreaFilled(false);
        jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton1.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/RegresarPressed.png"))); // NOI18N
        jButton1.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/RegresarHover.png"))); // NOI18N
        add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 30, -1, -1));

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/Guardar.png"))); // NOI18N
        jButton2.setBorder(null);
        jButton2.setBorderPainted(false);
        jButton2.setContentAreaFilled(false);
        jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton2.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/GuardarPressed.png"))); // NOI18N
        jButton2.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/GuardarHover.png"))); // NOI18N
        add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 400, -1, -1));

        jCheckBox1.setBackground(new java.awt.Color(255, 255, 255));
        jCheckBox1.setText("Restricción");
        jCheckBox1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBox1StateChanged(evt);
            }
        });
        add(jCheckBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 380, -1, -1));

        jCheckBox2.setBackground(new java.awt.Color(255, 255, 255));
        jCheckBox2.setText("Extranjero");
        jCheckBox2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox2ActionPerformed(evt);
            }
        });
        add(jCheckBox2, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 140, -1, -1));

        link.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/ConsultarProfesor1.png"))); // NOI18N
        link.setBorder(null);
        link.setBorderPainted(false);
        link.setContentAreaFilled(false);
        link.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/ConsultarProfesorPressed1.png"))); // NOI18N
        link.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/ConsultarProfesorHover1.png"))); // NOI18N
        add(link, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 460, -1, -1));
    }// </editor-fold>//GEN-END:initComponents

    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField1ActionPerformed

    private void jCheckBox1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBox1StateChanged
        jTextArea1.setEnabled(jCheckBox1.isSelected());
    }//GEN-LAST:event_jCheckBox1StateChanged

    private void jCheckBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jCheckBox2ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JButton jButton1;
    public javax.swing.JButton jButton2;
    public javax.swing.JCheckBox jCheckBox1;
    public javax.swing.JCheckBox jCheckBox2;
    public javax.swing.JComboBox jComboBox1;
    public javax.swing.JComboBox jComboBox2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    public javax.swing.JLabel jLabel2;
    public javax.swing.JLabel jLabel3;
    public javax.swing.JLabel jLabel4;
    public javax.swing.JLabel jLabel5;
    public javax.swing.JLabel jLabel6;
    public javax.swing.JLabel jLabel7;
    public javax.swing.JLabel jLabel9;
    public javax.swing.JList jList1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    public javax.swing.JTextArea jTextArea1;
    public javax.swing.JTextField jTextField1;
    public javax.swing.JTextField jTextField2;
    public javax.swing.JTextField jTextField3;
    public javax.swing.JTextField jTextField4;
    public javax.swing.JTextField jTextField5;
    public javax.swing.JTextField jTextField6;
    public javax.swing.JButton link;
    // End of variables declaration//GEN-END:variables
}
